#!/usr/bin/env bash
export JAVA_OPTS="-server -Xms1024M -Xmx1024M -Xss512k -XX:PermSize=256M -XX:-HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/dump.hprof"
git pull;
sh ./mvnw clean install -U -Dmaven.test.skip=true;
sh ./mvnw dependency:copy-dependencies
sh ./shutdown.sh
nohup java -classpath .//target/dependency/*:.//target/classes com.example.DemoApplication --spring.profiles.active=test --spring.cloud.config.profile=test >/dev/null 2>&1 &